package com.jeesite.modules.rt.dao;

import com.jeesite.common.dao.CrudDao;
import com.jeesite.common.mybatis.annotation.MyBatisDao;
import com.jeesite.modules.rt.entity.RtDevice;

import java.util.Date;
import java.util.List;

/**
 * 路由器设备DAO接口
 * @author 李寒冰
 * @version 2024-09-26
 */
@MyBatisDao(dataSourceName="ds2")
public interface RtDeviceDao extends CrudDao<RtDevice> {

    /**
     * 获取未刷新的网络状态数据
     */
    public List<RtDevice> findNoRefreshLineData(Date refreshTime);
    public List<RtDevice> findNoUpRefreshLineData(Date refreshTime);
    public List<RtDevice> findNoDownRefreshLineData(Date refreshTime);

    public List<RtDevice> getDevicePage(int startIndex, int pageSize);
    public void saveDeviceYishengchan(String[] id);
}